﻿using Microsoft.AspNetCore.Html;
using Microsoft.AspNetCore.Mvc.Rendering;
using nobug;

public static class Language
{
    public static string Get(string key)
    {
        return CommonUtils.Language.Get(key, Session.GetLanguage());
    }

    public static IHtmlContent GetLanguage<TModel>(this IHtmlHelper<TModel> htmlHelper, string key)
    {
        return htmlHelper.Raw(Get(key));
    }
}